/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const logAnalysisRouter = {
  path: '/logAnalysis',
  component: Layout,
  redirect: '/logAnalysis/historicalTraffic',
  name: 'logAnalysis',
  meta: {
    title: '日志分析',
    icon: 'chart',
    // requiresAuth: true,
  },
  children: [
    // {
    //   path: 'eventLog',
    //   name: 'eventLog',
    //   component: () => import('@/views/logAnalysis/eventLog'),
    //   meta: { 
    //     title: '事件日志', 
    //     icon: 'dian',
    //     roles: ['root', 'admin', 'guest' ] 
    //   }
    // },
    {
      path: 'historicalTraffic',
      name: 'historicalTraffic',
      component: () => import('@/views/logAnalysis/historicalTraffic'),
      meta: { 
        title: '流量分析', 
        icon: 'dian',
        roles: ['root', 'admin', 'guest' ] 
      }
    },
    // {
    //   path: 'accelerateDomainName',
    //   name: 'accelerateDomainName',
    //   component: () => import('@/views/logAnalysis/accelerateDomainName'),
    //   meta: { title: '加速域名', icon: 'dian' },
    // },
    {
      path: 'auditLog',
      name: 'auditLog',
      component: () => import('@/views/logAnalysis/auditLog'),
      meta: { 
        title: '审计日志', 
        icon: 'dian', 
        requiresAuth: true, 
        // permission: '000010',
        roles: ['root', 'admin', 'guest' ] 
      }
    },
    {
      path: 'accelerateDomainName',
      name: 'accelerateDomainName',
      component: () => import('@/views/logAnalysis/accelerateDomainName'),
      meta: { 
        title: '审计统计', 
        icon: 'dian', 
        requiresAuth: true, 
        // permission: '000010',
        roles: ['root', 'admin', 'guest' ] 
      }
    },
    // {
    //   path: 'screenRecording',
    //   name: 'screenRecording',
    //   component: () => import('@/views/logAnalysis/screenRecording'),
    //   meta: { title: '屏幕录像',
    //     icon: 'dian',
    //     requiresAuth: true,
    //     permission: '100000',
    //     noCache: false,
    //     keepAlive: true,
    //     roles: ['boss', 'root', 'guest' ] 
    //   }
    // },
    // {
    //   path: 'recordingDetails',
    //   name: 'recordingDetails',
    //   component: () => import('@/views/logAnalysis/recordingDetails'),
    //   hidden: true,
    //   meta: { 
    //     title: '录像详情', 
    //     icon: 'dian', 
    //     requiresAuth: true, 
    //     permission: '100000',
    //     roles: ['boss', 'root', 'guest' ] 
    //   }
    // },
    // {
    //   path: 'chatBackup',
    //   name: 'chatBackup',
    //   component: () => import('@/views/logAnalysis/chatBackup'),
    //   meta: { 
    //     title: '聊天备份', 
    //     icon: 'dian', 
    //     requiresAuth: true, 
    //     permission: '100000', 
    //     roles: ['boss', 'root', 'guest']
    //   }
    // },
    {
      path: 'Intelligence',
      name: 'Intelligence',
      component: () => import('@/views/logAnalysis/Intelligence'),
      meta: { 
        title: '人工智能', 
        icon: 'dian', 
        requiresAuth: true, 
        // permission: '000100',
        roles: ['root','boss', 'root', 'guest']
      }
    },
    
    {
      path: 'systemLog',
      name: 'systemLog',
      component: () => import('@/views/logAnalysis/systemLog'),
      meta: { 
        title: '系统日志', 
        icon: 'dian',
        roles: ['root', 'admin', 'guest' ] }
    }
  ]
}

export default logAnalysisRouter
